import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 98152
 * Date: 2024-11-16
 * Time: 17:21
 */
public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int tmpN = n;
        StringBuffer stringbuffer = new StringBuffer();
        while(tmpN != 0) {
            int tmp = tmpN % 10;
            stringbuffer.append(tmp % 2);
            tmpN /= 10;
        }
        String str = stringbuffer.reverse().toString();
        int len = str.length();
        int begin = 0;
        for(int i = 0; i < len; i++) {
            char ch = str.charAt(i);
            if(ch != '0') {
                break;
            }else {
                begin++;
            }
        }
        if(begin == len) {
            System.out.println(0);
        }else {
            System.out.println(str.substring(begin, len));
        }
    }
}
